﻿using MapleLeaf.Model.CookBook.Menu.Entity;
using MapleLeaf.Model.CookBook.Organization.Entity;

namespace CodeGenerator {
    internal class Program {
        static void Main(string[] args) {
            Console.WriteLine("----------代码生成器----------");
            var dic = new Dictionary<string, string>();

            dic.Add(typeof(DictEntity).Name, "字典管理");
            dic.Add(typeof(DictItemEntity).Name, "字典项管理");

            //foreach (var item in dic) {
            //    var file = ControllerCodeFactory.Create("Menu", "Menu", item.Key, item.Value);
            //    Console.WriteLine($"file:{file}");
            //}
            var file3 = ClientCodeFactory.Create("System", dic, "Menu");
            Console.WriteLine(file3);
            var startDate = DateTime.Now.Date.AddDays(-1);


            Console.ReadKey();
        }
    }
}